package com.mes.check.dao.iface;

import java.util.List;

import com.mes.check.domain.Certificate;
import com.mes.common.dao.iface.IBasicDao;

public interface ICertificateDao extends IBasicDao<Certificate> {
	/**
	 * 根据合格证号查找所有合格证记录
	 * @param certificateId
	 * @return
	 * @throws Exception
	 */
	public List<Certificate> getCertificatesById(String certificateId) throws Exception;
	/**
	 * 根据合格证号查找当前版本有效的合格证记录
	 * @param certificateId
	 * @return
	 * @throws Exception
	 */
	public Certificate getEffectiveCertificateById(String certificateId) throws Exception;
}
